(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <string.h>
size_t strspn()
SYNOPSIS
const char * str
const char * accept

FUNCTION
Calculates the length of the initial segment of str which consists entirely of characters in accept.

INPUTS
str
The string to check.
reject
Characters which must not be in str.
RESULT
Length of the initial segment of str which contains only characters from accept.

NOTES
EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");

// Returns 5
strspn (buffer, "Helo");

// Returns 0
strspn (buffer, "xyz");

BUGS
SEE ALSO
INTERNALS
HISTORY
23.04.1997 aros
Initialized some variables that could have caused problems otherwise
11.12.1996 aros
New functions